<?php
/**
 * Created by PhpStorm.
 * User: qttx
 * Date: 2019/6/2
 * Time: 17:21
 */
namespace app\api\controller;

use app\api\model\CityModel;

class City extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->city = new CityModel();
    }
    //省
    public function province()
    {
        $list = $this->city->province();
        AjaxReturn('1','成功',['list'=>$list]);
    }
    //市
    public function city()
    {
        $list = $this->city->city();
        AjaxReturn('1','成功',['list'=>$list]);
    }
    //区
    public function area()
    {
        $list = $this->city->area();
        AjaxReturn('1','成功',['list'=>$list]);
    }
}